home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / monitory / asktask / at_gadg.c < prev    next >
C/C++ Source or Header  |  1989-07-22  |  3KB  |  58 lines

  1. /* at_gadg.c */
  2. /*************************************************************************
  3.  ***                    AskTask Gadgets Module                         ***
  4.  *** Date begun: 1/4/89.                                               ***
  5.  *** Last modified: 2/4/89.                                            ***
  6.  *************************************************************************/
  7.  
  8. #include "asktask.h"
  9.  
  10. static WORD bdata[10] = {0,0, 75,0, 75,12, 0,12, 0,0};
  11.  
  12. static struct Border bd1 = {0,0,2,0,JAM1,5,&bdata[0],NULL};
  13. static struct Border bd2 = {1,0,2,0,JAM1,5,&bdata[0],&bd1};
  14.  
  15. static struct IntuiText reftext = {1,0,JAM1,10,3,NULL,"REFRESH",NULL};
  16. static struct IntuiText rfttext = {1,0,JAM1,6,3,NULL,"REF TASK",NULL};
  17. static struct IntuiText cprtext = {3,0,JAM1,6,3,NULL,"PRIORITY",NULL};
  18. static struct IntuiText remtext = {3,0,JAM1,6,3,NULL,"REM TASK",NULL};
  19. static struct IntuiText hlptext = {1,0,JAM1,22,3,NULL,"HELP",NULL};
  20. static struct IntuiText esctext = {2,0,JAM1,14,3,NULL,"ESCAPE",NULL};
  21. static struct IntuiText nxptext = {1,0,JAM1,6,3,NULL,"NEXTPAGE",NULL};
  22. static struct IntuiText pvptext = {1,0,JAM1,6,3,NULL,"PREVPAGE",NULL};
  23. static struct IntuiText ststext = {3,0,JAM1,14,3,NULL,"SIGNAL",NULL};
  24. static struct IntuiText exttext = {3,0,JAM1,14,3,NULL,"EXIT()",NULL};
  25.  
  26. static struct Gadget    refgadg = {
  27.     NULL,478,13,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  28.     &reftext,NULL,NULL,G_REFRESH,NULL};
  29. static struct Gadget    rftgadg = {
  30.     &refgadg,478,29,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  31.     &rfttext,NULL,NULL,G_REF_TASK,NULL};
  32. static struct Gadget    cprgadg = {
  33.     &rftgadg,558,61,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  34.     &cprtext,NULL,NULL,G_CHANGE_P,NULL};
  35. static struct Gadget    remgadg = {
  36.     &cprgadg,558,29,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  37.     &remtext,NULL,NULL,G_REMOVE,NULL};
  38. static struct Gadget    hlpgadg = {
  39.     &remgadg,478,77,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  40.     &hlptext,NULL,NULL,G_HELP,NULL};
  41. static struct Gadget    escgadg = {
  42.     &hlpgadg,558,13,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  43.     &esctext,NULL,NULL,G_QUIT,NULL};
  44. static struct Gadget    nxpgadg = {
  45.     &escgadg,478,61,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  46.     &nxptext,NULL,NULL,G_NEXTPAGE,NULL};
  47. static struct Gadget    pvpgadg = {
  48.     &nxpgadg,478,45,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  49.     &pvptext,NULL,NULL,G_PREVPAGE,NULL};
  50. static struct Gadget    stsgadg = {
  51.     &pvpgadg,558,77,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  52.     &ststext,NULL,NULL,G_SETSIG,NULL};
  53. static struct Gadget    extgadg = {
  54.     &stsgadg,558,45,77,13,GADGHCOMP,RELVERIFY,BOOLGADGET,(APTR)&bd2,NULL,
  55.     &exttext,NULL,NULL,G_EXITTASK,NULL};
  56.  
  57. struct Gadget   *firstgadg = &extgadg;
  58.